import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import First from '@/components/views/First'
import virtualScroller from '@/components/views/virtualList/virtualScroller'
import componentRecursion from '@/components/views/componentRecursion/index'
import father from '@/components/views/vueModel/father'
import page1 from '@/components/views/demo/page1'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/first',
      name: 'First',
      component: First
    },
    {
      path: '/virtualScroller',
      name: 'virtualScroller',
      component: virtualScroller
    },
    {
      path: '/componentRecursion',
      name: 'componentRecursion',
      component: componentRecursion
    },
    {
      path: '/father',
      name: 'father',
      component: father
    },
    {
      path: '/page1',
      name: 'page1',
      component: page1
    },
  ]
})
